<% layout('layout') -%>

<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <script language="javascript">
	function movePage() {
    if ("GID" == document.ZENONIA.S_TYPE.value) {
      if (true == isNaN(document.ZENONIA.TEXT.value)) {
        alert("Please input numeric characters only");
        return;
      }
    }
    // confirm(document.ZENONIA.S_TYPE.value);
		location.href = "/users/" + document.ZENONIA.S_TYPE.value + "&" + document.ZENONIA.TEXT.value;	
	}
  </script>
  <body>
  <form name="ZENONIA">
    <select name="S_TYPE">
      <option value='GID'>GID</option>
      <option value='UUID'>UUID</option>
      <option value='APPID'>APP ID</option>
      <option value='NICKNAME'>NICK NAME</option>
    </select>

    <input type="text" class="TextB" name="TEXT" style="BackGround-Color:GhostWhite"/>
    <input type="button" class="Btn_T" value="SEARCH" onclick="movePage()"/>
  </form>
  </body>
</html>